//
//  myLoadinView.m
//  iNews
//
//  Created by lanou3g on 14-12-15.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "myLoadinView.h"

@implementation myLoadinView


- (void)dealloc
{
    [_segment release];
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        
        [self addallviews];
    }
    return self;
}

-(void)addallviews{
    

    NSArray *array = @[@"电台",@"视频"];
    self.segment = [[[UISegmentedControl alloc] initWithItems:array] autorelease];
    self.segment.frame = CGRectMake(110,64,100, 25);
    self.segment.selectedSegmentIndex = 0;
    [self addSubview:self.segment];
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
